package com.teach.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.teach.entity.PhotoOrder;

public interface PhotoOrderMapper {
    int deleteByPrimaryKey(Long photoOrderId);

    int insert(PhotoOrder record);

    int insertSelective(PhotoOrder record);

    PhotoOrder selectByPrimaryKey(Long photoOrderId);

    int updateByPrimaryKeySelective(PhotoOrder record);

    int updateByPrimaryKey(PhotoOrder record);
    
    @Select("SELECT COUNT(*) from photo_order where photo_order_id = #{orderId}")
    int count(@Param("orderId")Long orderId);
}